import Vue from 'vue'
import App from './App.vue'
import fetch_plugin from './utils/fetch_plugin'
import base_plugin from "./utils/base_plugin"
import debounce_throttle_plugin from './utils/debounce_throttle_plugin';
import my_vue_router from "./utils/my_vue_router"
import pages from "./pages"

Vue
    .use(fetch_plugin)
    .use(base_plugin)
    .use(debounce_throttle_plugin)
    .use(my_vue_router)

const routes = [
    {
        path: "/",
        component: pages.Home
    }, {
        path: "/more",
        component: pages.More
    }
]

const router = new my_vue_router({ routes })

const vm = new Vue({
    el: "#root",
    router,
    render: h => h("router-view")
})